package com.googlecode.jgae.http;

/**
 * @author Denis Migol
 */
public class GaeHttpHeader {
    /**
     * app-id=exampleapp,domain=example.com,host=www.example.com
     */
    public static final String X_ZOO = "X-Zoo";

    /**
     * domain=example.com,host=www.example.com
     */
    public static final String X_GOOGLE_APPS_METADATA = "X-Google-Apps-Metadata";

    public static final String X_APPENGINE_COUNTRY = "X-AppEngine-Country";

    public static final String X_APPENGINE_REGION = "X-AppEngine-Region";

    public static final String X_APPENGINE_CITY = "X-AppEngine-City";

    public static final String X_APPENGINE_CITYLATLONG = "X-AppEngine-CityLatLong";

    public static final String X_APPENGINE_DEFAULT_NAMESPACE = "X-AppEngine-Default-Namespace";

    public static boolean isUnknownCountry(String countryCode) {
        return "?".equals(countryCode) || "ZZ".equals(countryCode);
    }

    public static boolean isUnknownRegion(String regionCode) {
        return "?".equals(regionCode);
    }

    public static boolean isUnknownCity(String cityName) {
        return "?".equals(cityName);
    }
}
